/* indent size: 2 */

module.exports = app => {
    const DataTypes = app.Sequelize;

    const Model = app.model.define('characters2', {
        id2: {
            type: DataTypes.INTEGER(10),
            allowNull: false,
            primaryKey: true,
            autoIncrement: true
        },
        name2: {
            type: DataTypes.STRING(50),
            allowNull: false
        },
        age2: {
            type: DataTypes.INTEGER(11),
            allowNull: false
        },
        sex2: {
            type: DataTypes.INTEGER(4),
            allowNull: false
        },
        total_score2: {
            type: DataTypes.STRING(50),
            allowNull: true
        },
        total_time2: {
            type: DataTypes.STRING(50),
            allowNull: true
        },
        first1_score_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        first1_time_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        first1_wrong_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        first1_click_list: {
            type: DataTypes.TEXT,
            allowNull: true
        },
        first2_score_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        first2_time_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        first2_wrong_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        first2_click_list: {
            type: DataTypes.TEXT,
            allowNull: true
        },
        two1_score_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        two1_time_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        two1_wrong_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        two1_click_list: {
            type: DataTypes.TEXT,
            allowNull: true
        },
        two2_score_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        two2_time_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        two2_wrong_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        two2_click_list: {
            type: DataTypes.TEXT,
            allowNull: true
        },
        three1_score_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        three1_time_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        three1_wrong_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        three1_click_list: {
            type: DataTypes.TEXT,
            allowNull: true
        },
        three2_score_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        three2_time_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        three2_wrong_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        three2_click_list: {
            type: DataTypes.TEXT,
            allowNull: true
        },
        four1_score_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        four1_time_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        four1_wrong_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        four1_click_list: {
            type: DataTypes.TEXT,
            allowNull: true
        },
        four2_score_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        four2_time_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        four2_wrong_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        four2_click_list: {
            type: DataTypes.TEXT,
            allowNull: true
        },
        five1_score_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        five1_time_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        five1_wrong_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        five1_click_list: {
            type: DataTypes.TEXT,
            allowNull: true
        },
        five2_score_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        five2_time_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        five2_wrong_list: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        five_click_list: {
            type: DataTypes.TEXT,
            allowNull: true
        },
        create_time: {
            type: DataTypes.DATE,
            allowNull: true,
            defaultValue: DataTypes.literal('CURRENT_TIMESTAMP')
        },
        update_time: {
            type: DataTypes.DATE,
            allowNull: true,
            defaultValue: DataTypes.literal('CURRENT_TIMESTAMP')
        }
    }, {
        tableName: 'characters2'
    });

    Model.associate = function () {

    }

    return Model;
};
